package com.itcoon.cloud.framework.mybatis.security.config;/**
 * @author Athric Yu
 * 2024/12/13
 **/

import com.itcoon.cloud.framework.mybatis.security.handler.AuthenticateMetaObjectHandler;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;

/**
 *
 *
 * @author Athric Yu
 * 2024/12/13
 **/
@AutoConfiguration
@ConditionalOnClass({HttpSecurity.class})
public class AuthUserAutoConfiguration {

    @Bean
    public AuthenticateMetaObjectHandler authenticateMetaObjectHandler(){
        return new AuthenticateMetaObjectHandler();
    }
}
